<template>
  <div>
      <h1>
      <span @click="fun()" class="iconfont icon-zuojiantou"></span>
      <slot name="title"></slot>
      <span class="iconfont icon-xiazai10"></span>
    </h1>
  </div>
</template>

<script>
export default {
methods:{
    fun() {
      this.$router.go(-1);
    },
}
}
</script>

<style scoped>
.iconfont{
  font-size: .20rem;
}
.icon-zuojiantou{
  font-size: .26rem;
}
h1 {
  background-color: #fff;
  position: fixed;
  top: 0;
  font-size: 0.36rem;
  font-weight: 700;
  width: 100%;
  height: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 span {
  text-align: center;
  line-height: 0.38rem;
  width: 0.38rem;
  height: 0.38rem;
  background-color: #fff;
  opacity: 0.7;
  border-radius: 50%;
  margin: 0 0.2rem;
}
</style>